Skip to content

Conversation

@TimMcCauley
Copy link

@TimMcCauley TimMcCauley commented Jan 4, 2026

Description

Fixes the bug described in #64414

What now works

The comment is updated in the tooltip once the user sets a new comment.

- Update QgsDataItem::refresh() to copy tooltips from new items to existing items
- Add RefreshChildrenWhenItemIsRefreshed capability to PostgreSQL and HANA schema items
- Enables proper refresh of table comments at both connection and schema levels
@github-actions github-actions bot added this to the 4.0.0 milestone Jan 4, 2026
@nyalldawson
Copy link
Collaborator

This is not quite the right approach -- you should instead update the "equals" methods for the item subclass which isn't being correctly updated to consider the tooltip too

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit de174b8)

🍎 MacOS Qt6 builds

Download MacOS Qt6 builds of this PR for testing.
This installer is not signed, control+click > open the app to avoid the warning
(Built from commit de174b8)

@nyalldawson
Copy link
Collaborator

@TimMcCauley lgtm! Can you confirm this new approach fixes the issue?

@TimMcCauley
Copy link
Author

Hi @nyalldawson it so far only fixes it if a user clicks refresh on the schema itself. I also want the tooltip to refresh itself after a user clicks OK in the dialog. Somehow it is not working yet, I am still working on it.

@TimMcCauley
Copy link
Author

Greetings @nyalldawson - this does work now. Please find video proof attached to this comment. I removed it from the HANA provider again as this does not provide setting table comments.

Screencast_20260110_213435.webm

@agiudiceandrea agiudiceandrea added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 10, 2026
if ( !mFutureWatcher )
{
mFutureWatcher = std::make_unique<QFutureWatcher<QVector<QgsDataItem *> >>( this );
mFutureWatcher = std::make_unique<QFutureWatcher<QVector<QgsDataItem *> >> ( this );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert the unrelated formatting changes to this file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nyalldawson done... after a fight with the cat!

.gitignore Outdated
.kdev4/
.project
.pydevproject
.qtcreator
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change (and duplicate of line 33)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Either a bug report, or a bug fix. Let's hope for the latter!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants